package com.kdd.campus.sh.service.impl;

import com.kdd.campus.sh.dao.ShGalleryMapper;
import com.kdd.campus.sh.po.ShGallery;
import com.kdd.campus.sh.service.GalleryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: fcp
 * @Date: 2020/5/9 21:20
 * @Description:
 */
@Service
public class GalleryServiceImpl implements GalleryService {
    @Autowired
    private ShGalleryMapper galleryMapper;

    @Override
    public List<ShGallery> findByProductId(Long id) {
        return galleryMapper.select(ShGallery.builder().productId(id).build());
    }
}
